﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Home.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	产品演示-上海众承精密机床有限公司
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="ad_show">
<div class="ad_picture"><img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/pre/images/p_03.gif") %>" width="980px" height="100" title="产品演示" /><div id="ditu"><img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/pre/images/position.gif") %>" width="8" height="22" /><span>当前位置：<a href="<%=kysec.CR.MyUrl.WebData.WEBURL %>/preIndex/Home">首页</a> >> 样品演示</span></div></div>
</div>
  <div class="main">
    <div id="main_top">
		  <div id="main_top_left">
          			<div class="cp_op">演示样品</div>
          <ul class="cp_op_ul">
         <%if (ViewData["Products"] != null)
                        {
                            foreach (var item in (System.Collections.Generic.IEnumerable<kysec.BLL.Production.DemoData>)ViewData["Products"])
                            { %>
		<li><a  href="/Product/Demo?id=<%=kysec.CR.Common.EncodeByBase64.Encode((item.pid).ToString()) %>"><%string title = item.title.Length > 5 ? item.title.Substring(0, 5) : item.title; %><%=title %>...</a></li>
        <%} 
           }%>
</ul></div>
		  <div id="main_right">              

            <hr class="noscreen" />
			<div class="gallery">


                <%if (ViewData["Products"] != null)
            {
                foreach (var item in (System.Collections.Generic.IEnumerable<kysec.BLL.Production.DemoData>)ViewData["Products"])
                { %>	
                <div class="photo">
                <a  href="/Product/Demo?id=<%=kysec.CR.Common.EncodeByBase64.Encode((item.pid).ToString()) %>">
                <%if (item.imgPath.HasElements == false)
                  {%>
                  <img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/pre/images/5.jpg") %>" alt="foto" width="180" height="130" /><%}
                  else
                  { %>
                <img src="<%=kysec.CR.MyUrl.WebData.WEBURL + item.imgPath.Element("item").Attribute("url").Value%>" alt="<%=item.title %>" width="180" height="130"/></a>         
                       <%} %>
 <p><a  href="/Product/Demo?id=<%=kysec.CR.Common.EncodeByBase64.Encode((item.pid).ToString()) %>"><%=item.model%></a></p>
 		</div>			
                <%}
            } %>
				<div class="clear">&nbsp;</div>
			</div>

        </div>
    </div>
  </div>
</asp:Content>
